options results;signal on SYNTAX;signal on ERROR;signal on IOERR;BBSIDENTIFY NAME;SYS=result;BBSIDENTIFY SYSOP;NAM=result;se=sendstring;gc=getchar;qu=query
gu 22;tc=result;gu 1500416;fc=result;gu 1200536;cty=result;gu 1200680;tcd=result;ucl=tcd-cty;if ucl<0 then ucl='caUNLIMITED';getuser 1100454;oldmore=result;changewhere'PORTStatus 'ver;oldwh=result
xa=1 /* Show SysOp Status? (0=NO/1=YES) */
xb=1 /* Show NEW USER Status? (0=NO/1=YES) */
xc=1 /* Show File Area Status? (0=NO/1=YES) */
xd=1 /* Show Game Area Status? (0=NO/1=YES) */
xe=1 /* Show Base Area Status? (0=NO/1=YES) */
xf=31 /* Access level of Sysop */
xg=0 /* User option to view port information 0=Force View/1=User Picks */
if xg=1 then do;tr;se 'ceView your port status? cc[caYcfescf/c9ncfocc] cd> ';gc;vyn=upper(result)
if vyn='N' then do;tr 'c9Now1';tr;tr 'ceThank You for using cfPORTc9Status cb'ver;setobject oldmore;putuser 1100454;changewhere oldwh;exit;end;else tr 'cfYesw1';end
MAIN:;tr 'f1cfPORTc9Status cbV'ver;tr;tr 'cfGood 'tday',ce' handle'cf... Thank You for calling ce'sys' cfBBS.';tr
tr 'cfYour call has been answered by ccPort #'cp' cfon ce'lt'.'
tr 'cfYour first call to ce'sys' cfwas on ce'fc'.'
call CNUM(cn);tr 'cfYour last call was on ce'lc'cf. You are caller cb#'a'.'
tr 'cfIt is now ce'ct' cfwith ceL70 7}XR 1}V71}.V70} cfminutes left this call.'
call CNUM(tc);tr 'cfYou have made c9'a' cfcalls with c9'cty' cfmade today and have c9'ucl' cfleft.';tr
if xa=1 then do;call CHECK;gu 2121864+port*24;CanChat=BitTST(d2c(result),0)
if CanChat=0 then SS='c9NOT AVAILABLE cffor Chat.';if CanChat=1 then SS='caAVAILABLE cffor Chat.'
tr 'cfThe SysOp cc(ce'NAM'cc) cfis 'SS;tr;end
if xb=1 then do;call CHECK;gu 2121864+port*24;NewUser=BitTST(d2c(result),1)
if NewUser=1 then NU='c9NOT Accepting cfNew Users';if NewUser=0 then NU='caAccepting cfNew Users'
tr 'ce'SYS' cfBBS is 'NU' on this port.';tr;end
if xc=1 then do;call CHECK;gu 2121864+port*24;UDBaseS=BitTST(d2c(result),2)
if UDBaseS=0 then UD='caOPEN';if UDBaseS=1 then UD='c9CLOSED'
tr 'cfThe File Area iscb: 'UD;end
if xd=1 then do;call CHECK;gu 2121864+port*24;PFilesS=BitTST(d2c(result),3)
if PFilesS=0 then PF='caOPEN';if PFilesS=1 then PF='c9CLOSED'
tr 'cfThe Game Area iscb: 'PF;end
if xe=1 then do;call CHECK;gu 2121864+port*24;MsgBase=BitTST(d2c(result),4)
if MsgBase=0 then MB='caOPEN';if MsgBase=1 then MB='c9CLOSED'
tr 'cfThe Base Area iscb: 'MB;end;if ac=xf then do;tr;call SYSMEN;end
tr;tr;se 'cfPress cc[ceAny Keycc] cfto Continue...g1';setobject oldmore;putuser 1100454;tr ' ceThank You for using cfPORTc9Status cb'ver;setobject oldmore;putuser 1100454;changewhere oldwh;exit
SYSMEN:tr 'cePort cfPort Status ceSysOp Around? cfNewUsers ceFileArea cfGameArea ceBaseArea'